package org.feuyeux.pattern.structural;

import java.util.concurrent.atomic.AtomicLong;
import lombok.Data;

@Data
public class Counter {

  private AtomicLong count = new AtomicLong();

  public long add() {
    return count.addAndGet(1);
  }
}
